package com.inventory.api.dao;

import com.inventory.api.entity.Product;
import org.springframework.data.repository.CrudRepository;

import java.util.List;

/**
 * Created by lihu on 2018/1/29.
 */
public interface ProductDao extends CrudRepository<Product, String> {


    List<Product> findByIdIn(List<String> ids);

    /***
     * 获取店铺所有商品一级信息
     * @param storeId
     * @return
     */
    List<Product> findByStoreId(String storeId);
}
